this._locationValid = false;
this._lastUpdate = GLib.DateTime.new_from_unix_local(0);
- this._useAutoLocation = false;
+ this._autoLocationRequested = false;
this._mostRecentLocation = null;
this._gclueService = null;
this._loadInfo();
},
+ get _useAutoLocation() {
+ return this._autoLocationRequested;
+ },
+
_loadInfo: function() {
let id = this._weatherInfo.connect('updated', () => {
this._weatherInfo.disconnect(id);
_onAutomaticLocationChanged: function(settings, key) {
let useAutoLocation = settings.get_boolean(key);
- if (this._useAutoLocation == useAutoLocation)
+ if (this._autoLocationRequested == useAutoLocation)
return;
- this._useAutoLocation = useAutoLocation;
+ this._autoLocationRequested = useAutoLocation;
this._updateLocationMonitoring();